package com.upcode.weighing.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.upcode.weighing.base.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

//员工
@Data
@EqualsAndHashCode(callSuper=false)
public class SysEmp extends BaseEntity {
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;//id
    private String name;//员工姓名
    private String userCode;//员工编码
    @JsonSerialize(using= ToStringSerializer.class)
    private Long orgId1;//所在公司ID
    @JsonSerialize(using= ToStringSerializer.class)
    private Long orgId2;//所在部门ID
    @JsonSerialize(using= ToStringSerializer.class)
    private Long orgId3;//所在岗位ID
    private Integer sex;//性别 0:女  1:男
    private String card;//身份证号
    private String mobile;//电话
    private String email;//邮箱
    private String linkName;//紧急联系人
    private String linkMobile;//紧急联系人手机号
    private String img1;//电子照片
    private String img2;//证书照片,多个用逗号隔开
    private LocalDateTime createTime;//创建时间
    @JsonSerialize(using= ToStringSerializer.class)
    private Long createUserId;//创建人ID
    private LocalDateTime updateTime;//修改时间
    @JsonSerialize(using= ToStringSerializer.class)
    private Long updateUserId;//修改人ID
}
